#include<iostream>

using namespace std;

int main()
{
	int N, num = 0, line = 1;
	cin >> N;
	while (true)
	{
		if (num >= N) break;

		num += line;
		line++;
	}
	line = line - 1;
	if (line % 2 == 0) 
	{
		// line / 1	line + 1
		cout << line - (num - N) << "/" << line + 1 - (line - (num - N));
	}else
	{
		cout << line + 1 - (line - (num - N)) << "/" << line - (num - N);
	}

	return 0;
}